set ( 	kdcmediaplayerplugin_SRCS
		kdcmediaplayer.cpp
		kdcmplayercontrolpanel.cpp
		kdcmediaplayerplugin.cpp
		kdcmediaplayerconfigpage.cpp
		mediaplayerfactoryimpl.cpp
	)

kde4_add_kcfg_files( kdcmediaplayerplugin_SRCS kdcmediaplayerconfig.kcfgc )
kde4_add_plugin ( kdcmediaplayerplugin ${kdcmediaplayerplugin_SRCS} )
target_link_libraries ( kdcmediaplayerplugin kdclibgui kdclibcore ${KDE4_KDEUI_LIBS} )
install( TARGETS kdcmediaplayerplugin DESTINATION ${EXEC_INSTALL_PREFIX}/plugins )
install(FILES kdcmediaplayerconfig.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
install(FILES kdcmediaplayerplugin.desktop  DESTINATION  ${SERVICES_INSTALL_DIR} )